﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="AdminProduct.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminProduct" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <asp:Label ID="lbAdminProduct" runat="server" Text="produkter Manager"></asp:Label>
    </h1>
    <div class="accountInfo">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tbody>
                <tr>
                    <td colspan="2">
                        <span class="failureNotification">
                            <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                        </span>
                        <asp:ValidationSummary ID="ProductValidationSummary" runat="server" CssClass="failureNotification"
                            ValidationGroup="ProductGroup" />
                    </td>
                </tr>
                <tr id="trSupplier" runat="server">
                    <td align="right">
                        <asp:Label ID="lbSupplier" runat="server">Leverandør Navn:</asp:Label>
                    </td>
                    <th>
                        <asp:DropDownList runat="server" ID="ddlSupplier" CssClass="textEntry" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbCategoryName" runat="server">Kategori Navn:</asp:Label>
                    </td>
                    <th>
                        <asp:DropDownList runat="server" ID="ddlCategory" CssClass="textEntry" />
                        <asp:RequiredFieldValidator ID="rCategory" runat="server" ErrorMessage="Please select Category name."
                            ControlToValidate="ddlCategory" InitialValue="-1" Text="*" CssClass="failureNotification"
                            ToolTip="Please select Category name." ValidationGroup="ProductGroup" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbProductName" runat="server">Produktnavn:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtProductName" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rProduct" runat="server" ControlToValidate="txtProductName"
                            ValidationGroup="ProductGroup" CssClass="failureNotification" ErrorMessage="Product name is required."
                            ToolTip="Name is required." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbQuantityPerUnit" runat="server">Antall per enhet:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtQuantityPerUnit" runat="server" CssClass="textEntry"></asp:TextBox>
                       
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbPrice" runat="server">Pris:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtPrice" runat="server" CssClass="textEntry">0.0</asp:TextBox>
                        <asp:RequiredFieldValidator ID="rPrice" runat="server" ControlToValidate="txtPrice"
                            ValidationGroup="ProductGroup" CssClass="failureNotification" ErrorMessage="Price is numberic."
                            ToolTip="Price is numberic." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbPricePerUnit" runat="server">Pris per enhet:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtPricePerUnit" runat="server" CssClass="textEntry">0.0</asp:TextBox>
                        <asp:RequiredFieldValidator ID="rPricePerUnit" runat="server" ControlToValidate="txtPricePerUnit"
                            ValidationGroup="ProductGroup" CssClass="failureNotification" ErrorMessage="PricePerUnit is numberic."
                            ToolTip="Price is numberic." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbPictureUrl" runat="server">Bilde url:</asp:Label>
                    </td>
                    <th>
                        <asp:FileUpload ID="fuPictureUrl" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
                 <tr>
                    <td align="right">
                       
                    </td>
                    <th>
                        <asp:Image ID="ImageProduct" Height="150" Width="150" runat="server" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbUnitsInStock" runat="server">Enheter på lager:</asp:Label>
                    </td>
                    <th>
                        <asp:DropDownList ID="ddlUnitInStock" Width="150" runat="server" CssClass="textEntry">
                            <asp:ListItem Text="stk" Value="stk"></asp:ListItem>
                            <asp:ListItem Text="kg" Value="kg"></asp:ListItem>
                            <asp:ListItem Text="liter" Value="liter"></asp:ListItem>
                        </asp:DropDownList>
                        
                        
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbDiscount" runat="server">Rabatt:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtDiscount" runat="server" CssClass="textEntry">0.0</asp:TextBox>
                        <asp:RequiredFieldValidator ID="rDiscount" runat="server" ControlToValidate="txtDiscount"
                            ValidationGroup="ProductGroup" CssClass="failureNotification" ErrorMessage="Discount is numberic."
                            ToolTip="Discount is numberic." Text="*" />
                    </th>
                </tr>
                 <tr>
                    <td align="right">
                        <asp:Label ID="lbDecription" runat="server">Decription:</asp:Label>
                    </td>
                    <th>
                         <fckeditorv2:fckeditor ID="FCKDecription" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px"></fckeditorv2:fckeditor>  
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                        <!--
                        <asp:CheckBox ID="cbDeletedFlag" runat="server" Text="Deleted" />
                        -->
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                        <asp:Button ID="btnSave" runat="server" Text="Lagre" ValidationGroup="LoginUserValidationGroup"
                            OnClick="btnSave_Click" />
                        &nbsp;<asp:Button ID="btnapply" runat="server" Text="Gjelder" 
                            onclick="btnapply_Click" />
&nbsp;<asp:Button ID="btnBack" runat="server" Text="Tilbake" OnClick="btnBack_Click" />
                    </th>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
